package com.nervenets.template.event;

import com.nervenets.general.utils.JodaUtils;
import com.nervenets.template.enumeration.OperateType;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class DataOfMoneyEvent extends ApplicationEvent {
    private final long startOfDayTime;

    public DataOfMoneyEvent(OperateType type) {
        this(type, JodaUtils.getStartOfToday());
    }

    public DataOfMoneyEvent(OperateType type, long startOfDayTime) {
        super(type);
        this.startOfDayTime = startOfDayTime;
    }
}
